﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DimensionData.Data2
{
    public class DTreeNode
    {
        public DTree Tree { get; set; }
        public DTree NextTree { get; set; }
        public int Level { get; set; }
        public string Code { get; set; }
        public string Name { get; set; }
        public string Formula { get; set; }

        /// <summary>
        /// 下级节点列表
        /// </summary>
        public List<DTreeNode> Nodes { get; set; }

        public DTreeNode()
        {
            Nodes = new List<DTreeNode>();
        }

        public override string ToString()
        {
            return string.Format("{0}-{1}({2})", this.Level, this.Name, this.Code);
        }
    }
}
